package com.aspose.cells;

import java.util.ArrayList;

class zcbv {
   private zbqg a = null;
   private com.aspose.cells.b.a.d.zh b;
   private zcel c;

   zcbv(zcel var1, zbqg var2) throws Exception {
      this.c = var1;
      this.a = var2;
      this.b = new com.aspose.cells.b.a.d.zh();
   }

   void a(String var1, com.aspose.cells.a.f.zj var2) throws Exception {
      this.a();
      zcel.a(var1, this.b, var2);
      this.b.a();
      this.b = null;
   }

   private void a() throws Exception {
      zbxm var1 = new zbxm();
      var1.a(this.a);
      var1.a(this.b);
      if (this.a.c() != null) {
         zcdv var2 = new zcdv(this.a);
         var2.a(this.b);
      }

      this.b();
      this.c();
      zcdb var3 = new zcdb(588);
      var3.a(this.b);
   }

   private void b() throws Exception {
      ArrayList var1 = this.a.b();
      if (var1.size() != 0) {
         for(int var2 = 0; var2 < var1.size(); ++var2) {
            zuk var3 = (zuk)var1.get(var2);
            zcdu var4 = new zcdu(var3);
            var4.a(this.b);
            if (var3.h() != null) {
               zcdt var5 = new zcdt(var3);
               var5.a(this.b);
            }

            zcds var7 = new zcds(this.a, var3);
            var7.a(this.b);
            zcdb var6 = new zcdb(587);
            var6.a(this.b);
         }

      }
   }

   private void c() throws Exception {
      String[] var1 = this.a.c();
      if (var1 != null && var1.length != 0) {
         int var2 = var1.length;
         boolean var3 = false;

         int var4;
         zut var5;
         for(var4 = 0; var4 < var2; ++var4) {
            var5 = this.a.c(var1[var4]);
            if (var5 != null) {
               var3 = true;
               break;
            }
         }

         if (var3) {
            for(var4 = 0; var4 < var2; ++var4) {
               var5 = this.a.c(var1[var4]);
               if (var5 != null) {
                  boolean var6 = false;
                  Object var7 = var5.a().a(3);
                  if (var7 != null && ((String)var7).equals("true")) {
                     var6 = true;
                  }

                  zcbw var8 = new zcbw(var4, var6);
                  var8.a(this.b);
                  if (var5.e()) {
                     ArrayList var9 = var5.a;
                     int var10 = var9.size();

                     for(int var11 = 0; var11 < var10; ++var11) {
                        zuq var12 = (zuq)var9.get(var11);
                        zcdb var13 = new zcdb(366, var12.a());
                        var13.a(this.b);
                        if (var12.d()) {
                           ArrayList var14 = var12.f();
                           int var15 = var14.size();

                           for(int var16 = 0; var16 < var15; ++var16) {
                              zum var17 = (zum)var14.get(var16);
                              this.a(var17);
                           }
                        }
                     }
                  }

                  zcdb var18 = new zcdb(364);
                  var18.a(this.b);
               }
            }

         }
      }
   }

   private void a(zum var1) throws Exception {
      switch(var1.a()) {
      case 0:
         zcbq var3 = new zcbq();
         var3.a(var1);
         var3.a(this.b);
      case 1:
      case 3:
      default:
         break;
      case 2:
         zcbr var4 = new zcbr();
         var4.a(var1);
         var4.a((com.aspose.cells.b.a.d.zm)this.b);
         break;
      case 4:
         zcbs var2 = new zcbs();
         var2.a(var1);
         var2.a(this.b);
         break;
      case 5:
         zcbt var5 = new zcbt();
         var5.a(var1);
         var5.a(this.b);
      }

   }
}
